
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>角色列表</title>
	
	<link rel="stylesheet" href="css/main.css" media="all">
	<script src="lib/layui/layui.js" charset="utf-8"></script>
	<script src="js/x-layui.js" charset="utf-8"></script>
	
	<script>
		layui.use(['laydate','element','laypage','layer'], function(){});
	</script>
	
</head>
<body>

<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>首页</cite></a>
              <a><cite>管理员管理</cite></a>
              <a><cite>角色列表</cite></a>
            </span>
	
	<button class="layui-btn x-right" style="margin-left: 10px;" 
		onclick="javascript:location.replace(location.href);">
		<i class="layui-icon">ဂ</i>&nbsp;&nbsp;刷新
	</button>
	<button class="layui-btn x-right " 
		onclick="add('添加角色 ','role_add.html','600','500')">
		<i class="layui-icon">&#xe608;</i>&nbsp;&nbsp;添加
	</button>
</div>	

<div class="x-body">

    <table class="layui-table">
        <thead>
			<tr>
				<th>序号</th>
				<th>角色编号</th>
				<th>角色名称</th>
				<th>权限列表</th>
				<th>创建时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
        </thead>
        <tbody id="x-link">
			<tr>
				<td>1</td>
				<td>100</td>
				<td>超级管理员</td>
				<td>auth:*,role:*</td>
				<td>2019-08-30 21:32:53</td>
				<td class="td-status"> <span class="layui-btn layui-btn-normal " onclick="rule_status(this,'1',0)"> 启用 </span>
				</td>
				<td class="td-manage">
					<a title="编辑" href="javascript:;" onclick="edit('编辑角色','role_add.html','1','','510')"
					   class="ml-5" style="text-decoration:none">
						<i class="layui-icon">&#xe642;</i>
					</a>
				</td>
			</tr>
			<tr>
				<td>1</td>
				<td>100</td>
				<td>普通管理员</td>
				<td>auth:*,role:*</td>
				<td>2019-08-30 21:32:53</td>
				<td class="td-status"> <span class="layui-btn layui-btn-normal " onclick="rule_status(this,'1',0)"> 启用 </span>
				</td>
				<td class="td-manage">
					<a title="编辑" href="javascript:;" onclick="edit('编辑角色','role_add.html','1','','510')"
					   class="ml-5" style="text-decoration:none">
						<i class="layui-icon">&#xe642;</i>
					</a>
				</td>
			</tr>
			
        </tbody>
    </table>

</div>

<script>
	
	
	/*添加*/
	function add(title,url,w,h){
		x_admin_show(title,url,w,h);
	}

	//编辑
	function edit(title,url,id,w,h) {
		url = url+"?id="+id;
		x_admin_show(title,url,w,h);
	}
	
</script>

</body>
</html>